package com.lzkj.baotouhousingfund.utils;

import android.content.Context;
import android.widget.ImageView;

import com.coderc.library.widget.RoundImageView;
import com.youth.banner.loader.ImageLoader;

/**
 * Created by Chengs on 2017/3/16.
 */

public class BannerImageLoader extends ImageLoader {
    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        com.lzkj.baotouhousingfund.utils.ImageLoader.load(context.getApplicationContext(),path,imageView);
    }

    @Override
    public ImageView createImageView(Context context) {
        //圆角
        RoundImageView imageView = new RoundImageView(context);
        imageView.setType(RoundImageView.TYPE_ROUND);
        imageView.setBorderRadius(10);
        return imageView;
    }
}
